package mystatic.a01demo1;

public class StudentTest {
    public static void main(String[] args) {
        //1、创建一个学生对对象
        Student s1 = new Student("张三","22","男");
        Student s2 = new Student("李四","33","男");
        //2、给静态成员赋值
        s1.teacher = "小叶";

        s1.study();
        s2.study();
        System.out.println("--------------------------------");
        System.out.println(s1.toString());
        System.out.println(s2.toString());
    }



}
